package com.craney.testTab
{
	import flash.display.Sprite;
	import flash.events.KeyboardEvent;
	import flash.text.TextField;
	
	public class TestTabChildren extends Sprite
	{
		public function TestTabChildren()
		{
			var t1:TextField = new TextField();
			t1.border = true;
			t1.type = "input";
			
			var t2:TextField = new TextField();
			t2.border = true;
			t2.type = "input";
			t2.x = 200;
			
			addChild(t1);
			addChild(t2);
			
			var txt:TextField = new TextField();
			txt.border = true;
			txt.type = "input";
			txt.x = 200;
			txt.y = 200;
			addChild(txt);
			addEventListener(KeyboardEvent.KEY_UP, reset);
			
			

		}
		
		private function reset(evt:KeyboardEvent):void
		{
			var result:Boolean = (evt.keyCode == 82) && evt.ctrlKey;
			trace("按键是ctrl+r吗？" + result);
			if(result)
			{
				tabChildren = !tabChildren;
				trace("重设tabChildren，当前是：" + tabChildren);
			}
		}

	}
}